#!/usr/bin/python

def sayHello(): # function definition
	'''
	This is the DocStrings of function
	sayHello.'''

	print 'hello'
sayHello() # function call
print sayHello.__doc__

def printMax(a, b):
	if a>b:
		print a
		return a
	else:
		print b
		return b

printMax(3,4)
x=5
printMax(x,4)

def doubleIt(a):
	a = 2 * a;
	print a;

y = 10
doubleIt(y)
print(y)

def say(msg, times=1): #default value for args
	print msg * times

say('hello ')
say('world ',2)

def foo(a, b=2, c=3):
	print('a=',a,',b=',b,',c=',c)
foo(3,7)
foo(3,c=7);
foo(c=49,a=100)